home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
222
/
plplot
/
examples
/
example05.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-13
|
382b
|
22 lines
/* Test of drawing a histogram */
#include <math.h>
main()
{
int i;
float data[2048];
/* Fill up data points */
for (i=0; i<2048; i++)
data[i]=sin(0.01*(i+1));
plstar(1,1);
plhist(2048,data,-1.1,1.1,44,0);
pllab("\\frValue","\\frFrequency",
"\\frPLPLOT Example 5 - Probability function of Oscillator");
plend();
}